package cn.tedu.pojo.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("car")
public class GetController {
    @RequestMapping("get")
    public String haha(int age,String name){
        return age+name;
    }
    @RequestMapping("get2/{id}/{name}")
    public String get2(@PathVariable Integer id, @PathVariable String name){
        return id+name;
    }
    @RequestMapping("get2/{id}/{name}/{color}/{chang}")
    public String get2(@PathVariable Integer id, @PathVariable String name,
                       @PathVariable String color,@PathVariable double chang){
        return id+name+color+chang;
    }
}
